//
//  FocusViewController.m
//  UI_项目 测试1
//
//  Created by dlios on 15-1-16.
//  Copyright (c) 2015年 songCheng. All rights reserved.
//

#import "FocusViewController.h"

@interface FocusViewController ()

@end

@implementation FocusViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.button1 = [UIButton buttonWithType:(UIButtonTypeCustom)];
    
    self.button1.backgroundColor = [UIColor greenColor];
    
    self.button1.frame = CGRectMake(0, 100, 93, 45);
    
    [self.button1 setTitle:@"111" forState:(UIControlStateNormal)];
    
    [self.button1 setTitleColor:[UIColor lightGrayColor] forState:(UIControlStateNormal)];
    
    [self.button1 setTitleColor:[UIColor cyanColor] forState:(UIControlStateHighlighted)];
    
    [self.button1 addTarget:self action:@selector(Action1:) forControlEvents:(UIControlEventTouchUpInside)];
    
    [self.view addSubview:self.button1];
    
    // Do any additional setup after loading the view.
}
- (void)Action1:(UIButton *)button
{
    [self dismissViewControllerAnimated:YES completion:^{
        
        
    }];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
